package com.visizen.wisdomclass.server.client;

import com.visizen.wisdomclass.server.model.WcArticleLogSee;
import com.visizen.wisdomclass.server.model.WcArticleLogSeeExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface WcArticleLogSeeMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wc_article_log_see
     *
     * @mbggenerated
     */
    @SelectProvider(type=WcArticleLogSeeSqlProvider.class, method="countByExample")
    int countByExample(WcArticleLogSeeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wc_article_log_see
     *
     * @mbggenerated
     */
    @DeleteProvider(type=WcArticleLogSeeSqlProvider.class, method="deleteByExample")
    int deleteByExample(WcArticleLogSeeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wc_article_log_see
     *
     * @mbggenerated
     */
    @Delete({
        "delete from wc_article_log_see",
        "where log_see_id = #{log_see_id,jdbcType=BIGINT}"
    })
    int deleteByPrimaryKey(Long log_see_id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wc_article_log_see
     *
     * @mbggenerated
     */
    @Insert({
        "insert into wc_article_log_see (log_see_id, article_id, ",
        "user_id, equip_id, ",
        "log_time)",
        "values (#{log_see_id,jdbcType=BIGINT}, #{article_id,jdbcType=BIGINT}, ",
        "#{user_id,jdbcType=BIGINT}, #{equip_id,jdbcType=BIGINT}, ",
        "#{log_time,jdbcType=TIMESTAMP})"
    })
    int insert(WcArticleLogSee record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wc_article_log_see
     *
     * @mbggenerated
     */
    @InsertProvider(type=WcArticleLogSeeSqlProvider.class, method="insertSelective")
    int insertSelective(WcArticleLogSee record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wc_article_log_see
     *
     * @mbggenerated
     */
    @SelectProvider(type=WcArticleLogSeeSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="log_see_id", property="log_see_id", jdbcType=JdbcType.BIGINT, id=true),
        @Result(column="article_id", property="article_id", jdbcType=JdbcType.BIGINT),
        @Result(column="user_id", property="user_id", jdbcType=JdbcType.BIGINT),
        @Result(column="equip_id", property="equip_id", jdbcType=JdbcType.BIGINT),
        @Result(column="log_time", property="log_time", jdbcType=JdbcType.TIMESTAMP)
    })
    List<WcArticleLogSee> selectByExample(WcArticleLogSeeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wc_article_log_see
     *
     * @mbggenerated
     */
    @Select({
        "select",
        "log_see_id, article_id, user_id, equip_id, log_time",
        "from wc_article_log_see",
        "where log_see_id = #{log_see_id,jdbcType=BIGINT}"
    })
    @Results({
        @Result(column="log_see_id", property="log_see_id", jdbcType=JdbcType.BIGINT, id=true),
        @Result(column="article_id", property="article_id", jdbcType=JdbcType.BIGINT),
        @Result(column="user_id", property="user_id", jdbcType=JdbcType.BIGINT),
        @Result(column="equip_id", property="equip_id", jdbcType=JdbcType.BIGINT),
        @Result(column="log_time", property="log_time", jdbcType=JdbcType.TIMESTAMP)
    })
    WcArticleLogSee selectByPrimaryKey(Long log_see_id);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wc_article_log_see
     *
     * @mbggenerated
     */
    @UpdateProvider(type=WcArticleLogSeeSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") WcArticleLogSee record, @Param("example") WcArticleLogSeeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wc_article_log_see
     *
     * @mbggenerated
     */
    @UpdateProvider(type=WcArticleLogSeeSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") WcArticleLogSee record, @Param("example") WcArticleLogSeeExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wc_article_log_see
     *
     * @mbggenerated
     */
    @UpdateProvider(type=WcArticleLogSeeSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(WcArticleLogSee record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wc_article_log_see
     *
     * @mbggenerated
     */
    @Update({
        "update wc_article_log_see",
        "set article_id = #{article_id,jdbcType=BIGINT},",
          "user_id = #{user_id,jdbcType=BIGINT},",
          "equip_id = #{equip_id,jdbcType=BIGINT},",
          "log_time = #{log_time,jdbcType=TIMESTAMP}",
        "where log_see_id = #{log_see_id,jdbcType=BIGINT}"
    })
    int updateByPrimaryKey(WcArticleLogSee record);
}